package com.ddpt.platform.common.exception.error;

import com.ddpt.platform.common.exception.ErrorCodeDefinition;

/**
 * 活动相关的错误码
 * 取值[20001-29999]
 */
public enum ActivityErrorEnum implements ErrorCodeDefinition {
    buy_but_has_free_count(21001,"您尚有免费次数"),
    ip_limit(22001,"参与失败,系统检测IP异常"),
    ip_limit_verify(22002,"参与失败,系统检测IP异常"), // 滑块验证
    top_up_limit(22003,"充值失败,充值账号已达上限"),
    top_up_limit_verify(22004,"充值失败,充值账号已达上限"), // 滑块验证
    slider_verify_error(22005,"滑块验证失败，请重试"), // 滑块验证失败
    act_buy_oppos_error(22006,"购买活动参与机会失败"), // 活动购买参与机会失败
    ;

    private final int code;
    private final String remark;

    ActivityErrorEnum(int code, String remark) {
        this.code = code;
        this.remark = remark;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getRemark() {
        return remark;
    }
}
